/**
 * Ingenius-Group S.A.S
 *
 * Project: SAU
 * File: EditAcademicProgramEvent.java
 * Date: 08/02/2011
 */

package com.ingenius.sau.client.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.ingenius.sau.client.event.EditAcademicProgramEvent.EditAcademicProgramEventHandler;

/**
 * Class <strong>EditAcademicProgramEvent</strong>
 * 
 * @author Jesus David
 * @version 0.1
 */
public class EditAcademicProgramEvent extends
		GwtEvent<EditAcademicProgramEventHandler> {

	public interface EditAcademicProgramEventHandler extends EventHandler {

		void onEditAcademicProgram(EditAcademicProgramEvent event);
	}

	public static Type<EditAcademicProgramEventHandler> TYPE = new Type<EditAcademicProgramEventHandler>();

	private final String programId;

	public EditAcademicProgramEvent(String programId) {
		this.programId = programId;
	}

	public String getAcademicProgramId() {
		return programId;
	}

	@Override
	public Type<EditAcademicProgramEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(EditAcademicProgramEventHandler handler) {
		handler.onEditAcademicProgram(this);
	}

}
